package com.chenhao.springcloud.chenhaodesignservice.pattern.decorator;

/**
 * Description: 创建实现Shape接口的抽象装饰类
 *
 * @author chenhao
 * @date 2020/6/3 13:45
 */
public abstract class ShapeDecorator implements Shape {

    protected Shape decoratorShape;

    public ShapeDecorator(Shape decoratorShape){
        this.decoratorShape = decoratorShape;
    }


    @Override
    public void draw(){
        decoratorShape.draw();
    }
}
